package com.wn.icloud.plugin;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

/**
 * @author kyy
 * @date 2018/12/03
 */
@Mojo(name = "GenFrontendCode")
public class GenFrontendCodeMojo extends AbstractMojo {


    @Parameter(defaultValue = "com.wn.icloud",
            property = "basePackage", required = false)
    private String basePackage;


    @Parameter(defaultValue = "false",
            property = "overWrite", required = false)
    private Boolean overWrite;

    @Parameter(defaultValue = "/tmp/codes",
            property = "outPath", required = false)
    private String outputPath;


    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        String rootPath = System.getProperty("user.dir");
        System.out.println("===========basePackage:" + basePackage + "=============");
        System.out.println("===========rootPath:" + rootPath + "=============");
        System.out.println("===========overWrite:" + overWrite + "=============");
    }
}
